import { defHttp } from "@/utils/http";

// ERP 部门财务汇算API
export const invoiceInfoApi = {
	// 获得部门财务汇算分页
	invoiceInfoList: async (params: any) => {
		return await defHttp.get({ url: `/his/invoice-info/hfmDeptPage`, params });
	},
	// 新增部门财务汇算
	invoiceInfoCreate: async (data: any) => {
		return await defHttp.post({ url: `/his/invoice-info/create`, data });
	},

	// 修改部门财务汇算
	invoiceInfoUpdate: async (data: any) => {
		return await defHttp.put({ url: `/his/invoice-info/update`, data });
	},

	// 删除部门财务汇算
	invoiceInfoDelete: async (id: number) => {
		return await defHttp.delete({ url: `/his/invoice-info/delete?id=` + id });
	}
};
